<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EPiServer.Models.BaseModel>" %>

<ul id="MainMenu">
<% foreach (var link in Model.Menu) { %>
    <% if (link.Expanded) { %>
        <li class="selected"><%= link %></li>
    <% } else { %>
        <li class="unselected"><%= link %></li>
    <% } %>
<% } %>
</ul>
<%
    //TODO: hantera expanderat och inte.
%>
<!-- EPiServer:MenuList ru nat="server" id="Menu">
	<HeaderTemplate>
		<ul id="MainMenu">
	</HeaderTemplate>
	<ItemTemplate>
			<li class="unselected"><EPiServer:Property PropertyName="PageLink" ru nat="server" /></li>
	</ItemTemplate>
	<SelectedTemplate>
			<li class="selected"><EPiServer:Property run at="server" PropertyName="PageLink" /></li>
	</SelectedTemplate>
	<FooterTemplate>
		</ul>
	</FooterTemplate>
</EPiServer:MenuList -->